package com.wwdx.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liguoliang
 */
@Entity
@Table(name = "wwdx_vip_product")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties({"id","status","type","sort","gmtCreated","gmtModified"})
public class WwdxVipProductModel implements Serializable{

    @Id
    @GeneratedValue
    private Long id;
    /**
     * 产品ID
     */
    @Column(name = "product_id")
    private Long productId;
    /**
     * 产品名称
     */
    @Column(name = "product_name")
    private String productName;
    /**
     * 现价
     */
    private BigDecimal price;
    /**
     * 原价
     */
    @Column(name = "original_price")
    private BigDecimal originalPrice;
    /**
     * 状态0 不可用 1可用
     */
    private Integer status;
    /**
     * 推荐购买
     */
    private Integer recommend;
    /**
     * 产品类型 1:1周 2:1月 3:1年
     */
    private Integer type;
    private Integer sort;
    @Column(name = "gmt_created",updatable = false)
    private Date gmtCreated;
    @Column(name = "gmt_modified")
    private Date gmtModified;
}